package com.zhan.jpa.service;

import com.zhan.jpa.model.BaseEntity;
import com.zhan.utils.page.PageResult;
import com.zhan.utils.page.QueryCondition;

public interface AbstractService<T extends BaseEntity> {

    PageResult<T> list(QueryCondition condition);

    T saveOrUpdate(T entity) throws Exception;

    T getById(Long id);

    T deleteById(Long id) throws Exception;

    Integer deleteByIds(String ids) throws Exception;

}
